package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.PageResult2;
import com.itheima.common.Result1;
import com.itheima.common.Result1_1;
import com.itheima.entity.User;

import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {
    Result1 login(String username, String password);

    Result1_1 profile();

    Result1 UpdatePassword(Map<String, String> map);

    Result1 register(User user);


    PageResult2 findUserPage(Integer page, Integer pagesize, String username);

    User findById(Integer id);

    String add(User user);

    User updateUserById(Integer id, User user);

    void deleteById(Integer id);

    void updateState(Integer id, Map<String, String> map);

    List simple();

    void updatePass(Integer id, Map<String, String> map);
}
